/*
 * @Descripttion: 
 * @version: 
 * @Author: Eugene
 * @Date: 2023-12-31 13:49:55
 * @LastEditors: Andy
 * @LastEditTime: 2024-05-04 14:46:31
 */
/*
____/\\\\\\\\\_____        __/\\\________/\\\_        __/\\\\\\\\\\\_
 __/\\\///////\\\___        _\/\\\_______\/\\\_        _\/////\\\///__
  _\/\\\_____\/\\\___        _\/\\\_______\/\\\_        _____\/\\\_____
   _\/\\\\\\\\\\\/____        _\/\\\_______\/\\\_        _____\/\\\_____
    _\/\\\//////\\\____        _\/\\\_______\/\\\_        _____\/\\\_____
     _\/\\\____\//\\\___        _\/\\\_______\/\\\_        _____\/\\\_____
      _\/\\\_____\//\\\__        _\//\\\______/\\\__        _____\/\\\_____
       _\/\\\______\//\\\_        __\///\\\\\\\\\/___        __/\\\\\\\\\\\_
        _\///________\///__        ____\/////////_____        _\///////////__
*/
#ifndef __WHW_ROOT_H
#define __WHW_ROOT_H

#include "main.h"
#include "can.h"
#include "stdint.h"
#include "RUI_CAN.h"
#include "RUI_MATH.h"
#include "MY_define.h"
#include "WHW_Motor.h"

//是否在线的标志
typedef struct
{
    /******************************遥控********************************/

     /******************************头部电机********************************/
    uint8_t MOTOR_Pitch_2006;
    uint8_t MOTOR_Roll_2006;

}RUI_ROOT_STATUS_Typedef;

extern RUI_ROOT_STATUS_Typedef RUI_ROOT;

//在定时器调用这一个函数即可
void RUI_F_ROOT(void);
//电机在线监测
uint8_t RUI_F_MOTOR_STATUS(WHW_MOTOR_Typedef* MOTOR);

//总的状态监测
void RUI_F_ROOT_ALL_STATUS(void);

#endif

